﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;

namespace WindowsFormsApplication2
{
    public partial class Server : Form
    {
        int PORT_TO_CONNECT = 2011; ///gfgthf hgfhg
        IPEndPoint ipEndPoint;
        Socket socket;
        Socket clientSocket;

        public Server()
        {
            InitializeComponent();
            ipEndPoint = new IPEndPoint(IPAddress.Any, PORT_TO_CONNECT);
            socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
            socket.Bind(ipEndPoint);
            socket.Listen(100);
        }

        private void btnKhoiDong_Click(object sender, EventArgs e)
        {

        }
    }
}
